projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b83d03
)
fontchooser: Take font description from model
author
Benjamin Otte
<otte@redhat.com>
Tue, 20 Sep 2011 22:23:07 +0000
(
00:23
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 22 Sep 2011 19:44:05 +0000
(21:44 +0200)
... instead of taking face and constructing it from there.
gtk/gtkfontchooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfontchooserwidget.c
b/gtk/gtkfontchooserwidget.c
index f7210465e64380afc3025365e3a41e02234d649a..4ef5436fd1b9374eea70537d936d27300e3da6a5 100644
(file)
--- a/
gtk/gtkfontchooserwidget.c
+++ b/
gtk/gtkfontchooserwidget.c
@@
-390,12
+390,12
@@
cursor_changed_cb (GtkTreeView *treeview,
gtk_tree_model_get (priv->filter_model, &iter,
FACE_COLUMN, &face,
FAMILY_COLUMN, &family,
+ FONT_DESC_COLUMN, &desc,
-1);
gtk_tree_path_free (path);
path = NULL;
- desc = pango_font_face_describe (face);
pango_font_description_set_size (desc, pango_font_description_get_size (priv->font_desc));
gtk_widget_override_font (priv->preview, desc);